{template common/contentheader} 
<div class="setcontent">
	<div class="settitle">
		<h3>{lang edit_tag:admin}-$tag['tag_group_name_cn']</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang admin_content_tag_tip:admin}
	</div>
	<div class="setform">
	<form class="pzform" method="post" action="{url admin/contenttag?act=edit&tagid=$tag['tag_id']}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang parent_category:admin}:</label>
				<div class="formcontrol">
					<select name="category_id" id="category_id">
						{loop $categories $root}
						<option value="$root['category_id']"  {if $tag['category_id']==$root['category_id']}selected{/if}>$root['category_name_cn']</option> 
						{/loop}
					</select>
				</div>
				<span class="formhelp">{lang parent_category:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang tag_group_name_cn:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="tag_group_name_cn" id="tag_group_name_cn" value="$tag['tag_group_name_cn']"/>
				</div>
				<span class="formhelp">{lang tag_group_name_cn:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang tag_group_name_en:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="tag_group_name_en" id="tag_group_name_en" value="$tag['tag_group_name_en']"/>
				</div>
				<span class="formhelp">{lang tag_group_name_en:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_displayorder:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="display_order" id="display_order" value="$tag['display_order']"/>
				</div>
				<span class="formhelp">{lang th_displayorder:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang tags_content:admin}:</label>
				<div class="formcontrol">
					<textarea type="text" id="tags" name="tags" rows="3">$tag['tags']</textarea>
				</div>
				<span class="formhelp">{lang tags_content_tip:admin}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}